import axios from "@/router/axios";

// eslint-disable-next-line require-jsdoc
export function apiGetExternal (params) {
  return axios.get("/admin/sysExternalSystem/page", { params });
}

// eslint-disable-next-line require-jsdoc
export function apiAddExternal (body) {
  return axios.post("/admin/sysExternalSystem", body);
}

// eslint-disable-next-line require-jsdoc
export function apiAltExternal (params) {
  return axios.put("/admin/sysExternalSystem", params);
}

// eslint-disable-next-line require-jsdoc
export function apiDelExternal (id) {
  return axios["delete"]("/admin/sysExternalSystem/" + id);
}

// eslint-disable-next-line require-jsdoc
export function apiGetExternalKey (id) {
  return axios.get("/admin/sysExternalSystem/updateSignature/" + id);
}